import request from '@/utils/request'

// 查询优惠券列表
export function findCouponList(data) {
  return request({
    url: '/marketing/coupon/queryList',
    method: 'post',
    data
  })
}

// 查询所有优惠券
export function findCouponAll() {
  return request({
    url: '/marketing/coupon/findAll',
    method: 'get'
  })
}



// 新增优惠券
export function addCoupon(data) {
  return request({
    url: '/marketing/coupon/add',
    method: 'post',
    data: data
  })
}

// 修改优惠券
export function updateCoupon(data) {
  return request({
    url: '/marketing/coupon/update',
    method: 'put',
    data: data
  })
}
// 删除岗位
export function deleteCoupon(couponId) {
  return request({
    url: '/marketing/coupon/delete/' + couponId,
    method: 'delete'
  })
}
